// 元组可以在`match` 中解构
fn main() {
    let triple = (0, -2, 3);

    println!("tell me about {:?}", triple);
    // match 可以解构一个元组
    match triple {
        // 解构出第二个和第三个元素
        (0, y, z) => println!("first is `0`, `y` is {:?}, `z` is {:?}", y, z),
        // .. 可以用来忽略元组对的其余部分
        (1, ..) => println!("first is `1` and the rest doesn't matter"),
        // `_` 表示不将值绑定到变量
        _ => println!("it doesn't matter what they are"),
    }

}
